import request from '@/utils/request'

const api = {
  user: '/user/list',
  userAddress: '/address/list',
  userFeedback: '/feedback/list'
}

export default api

export function getUserList (parameter) {
  return request({
    url: api.user,
    method: 'get',
    params: parameter
  })
}

export function getUserAddressList (parameter) {
  return request({
    url: api.userAddress,
    method: 'get',
    params: parameter
  })
}

export function getUserFeedbackList (parameter) {
  return request({
    url: api.userFeedback,
    method: 'get',
    params: parameter
  })
}
